package com.ibeeking.found.cop.service.common.enums;

public enum WxCpDataTalkFriendsPermitEnum {
    //FRIEND_PERMIT_OFFICE(1, "办公版"),
    FRIEND_PERMIT_SERVICE(2, "服务版"),
    FRIEND_PERMIT_COMPANY(3, "企业版"),
    ;
    private Integer code;
    private String desc;

    WxCpDataTalkFriendsPermitEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (WxCpDataTalkFriendsPermitEnum enumObj : values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj.getDesc();
            }
        }
        return null;
    }
}
